﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tododoo.Data
{
    public partial class DataContainer : IData
    {
        public IEnumerable<Thing> Things
        {
            get { return this.ThingSet; }
        }

        public void AddThing(Thing thing)
        {
            this.ThingSet.AddObject(thing);
        }

        public void DeleteThing(Thing thing)
        {
            this.ThingSet.DeleteObject(thing);
        }

        public void Save()
        {
            this.SaveChanges();
        }
    }
}
